package designpattern.demo.j2ee.interceptingfilterpattern;

import designpattern.demo.j2ee.interceptingfilterpattern.filter.FilterManager;
import designpattern.demo.j2ee.interceptingfilterpattern.filter.impl.AuthenticationFilter;
import designpattern.demo.j2ee.interceptingfilterpattern.filter.impl.DebugFilter;
import designpattern.demo.j2ee.interceptingfilterpattern.filter.target.Target;

public class Main {
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
